package cn.iocoder.lw.module.core.convert.device;

import cn.iocoder.lw.framework.common.pojo.PageResult;
import cn.iocoder.lw.module.core.controller.admin.device.vo.*;
import cn.iocoder.lw.module.core.dal.dataobject.device.CoreDeviceDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 设备 Convert
 *
 * @author Lw源码
 */
@Mapper
public interface CoreDeviceConvert {

    CoreDeviceConvert INSTANCE = Mappers.getMapper(CoreDeviceConvert.class);

    CoreDeviceDO convert(CoreDeviceSaveReqVO bean);

    CoreDeviceRespVO convert(CoreDeviceDO bean);

    List<CoreDeviceRespVO> convertList(List<CoreDeviceDO> list);

    PageResult<CoreDeviceRespVO> convertPage(PageResult<CoreDeviceDO> page);

    List<CoreDeviceImportExcelVO> convertList02(List<CoreDeviceDO> list);

}